//
//  SocketManager.h
//  MSHD
//
//  Created by HCreater on 2017/12/17.
//  Copyright © 2017年 HCreater. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SocketManager : NSObject

MHSingletonH(SocketManager);

@property (nonatomic, assign) BOOL isReconnecting;

- (void)buildConnectWithToken:(NSString*)token callback:(VoidBlock_id)callback; 
- (void)buildOrderWithCabinet_id:(NSString*)cid callback:(VoidBlock_id)callback;
- (void)buildCancelOrderWithCabinet_id:(NSString*)cid key:(NSString*)key callback:(VoidBlock_id)callback;
- (void)buildScanOpenWithCabinet_id:(NSString*)cid code:(NSString*)code callback:(VoidBlock_id)callback;

- (void)wait2ConnectWithToken:(NSString*)token callback:(VoidBlock_id)callback; 

- (void)logonOutAndReConnect;

@end
